package com.lh.common;


import com.lh.process.engine.context.ProcessContext;
import com.lh.process.engine.process.RollBackProcessor;

/**
 * @author zhonghuashishan
 * @version 1.0
 */
// 根本没有spring容器和bean的概念，如何执行你的这个类里的方法呢？反射构建实例，反射调用实例的方法
public class RollBackProcessorDemo extends RollBackProcessor {

    @Override
    public void processInternal(ProcessContext context) {
        System.out.println("RollBackProcessor " + context.get("id"));
    }

    @Override
    public void rollback(ProcessContext context) {
        System.out.println("rollback RollBackProcessor " + context.get("id"));
    }


}
